//生成随机的日期
// function getRandomDate(start,end){
//     var date = new Date(start.getTime() + Math.random()*(end.getTime()-start.getTime()));
//     var year = date.getFullYear();
//     var month = date.getMonth()+1;
//     var day = date.getDate();
//     return year+'-'+month+'-'+day;
// }



function getRandomDate(){
    const date = new Date();
    date.setHours(Math.floor(Math.random() * 24))
    date.setMinutes(Math.floor(Math.random() * 60))
    date.setSeconds(Math.floor(Math.random() * 60))
    return date.toISOString();
}

console.log(getRandomDate());